﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BagOpen1 : MonoBehaviour
{
    public GameObject Item_message;
    public GameObject OpenBag_1;
    public bool isOpen;
    // Update is called once per frame
    Slot image = new Slot();
   void Update()
        {
        OpenMyBag();
     
    }

  public  void OpenMyBag()
        {
       
        if(Input.GetKeyDown(KeyCode.I))
            {
            isOpen=!isOpen;
            OpenBag_1.SetActive(isOpen);
        }
    }

    public void OpenMenu()
    {
        if (Input.GetKeyDown(KeyCode.Escape))
        {
            isOpen = !isOpen;
           
        }
    }
  
}
